package com.huawei.appmarket.service.store.awk.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appmarket.service.store.awk.card.MaterialRelatedListCard;
import o.cdr;
import o.cih;
import o.eib;
import o.exi;

public class MaterialRelatedListNode extends cdr {
    public MaterialRelatedListNode(Context context) {
        super(context, 1);
    }

    public int ˏ() {
        return eib.ॱˎ();
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -1);
        layoutParams.weight = 1.0f;
        int ˏ = ˏ();
        LayoutInflater from = LayoutInflater.from(this.ॱ);
        for (int i = 0; i < ˏ; i++) {
            exi ˊ = exi.ˊ(from, null);
            cih materialRelatedListCard = new MaterialRelatedListCard(this.ॱ);
            materialRelatedListCard.ˊ(ˊ);
            ˊ(materialRelatedListCard);
            viewGroup.addView(ˊ.ॱ(), layoutParams);
        }
        return true;
    }
}
